package model;

/**
 * This class represents a link between two entities. 
 * Can be used to create a link between two Attribute for example
 * @author Corentin
 *
 * @param <S> - the source object
 * @param <T> - the target object
 */
public class Link<S,T> {
	
	private final S source;
	private final T target;
	
	public Link() {
		this.source = null;
		this.target = null;
	}
	
	public Link(S s, T t) {
		this.source = s;
		this.target = t;
	}
	
	public S getSource() {
		return this.source;
	}
	
	public T getTarget() {
		return this.target;
	}
}
